import React from "react";
import ReactDOM from "react-dom";
import { Provider } from "react-redux";
import configStore from "@redux/configStore";
import { BrowserRouter as Router, Route } from "react-router-dom";

import App from "./pages/App";

const store = configStore();

ReactDOM.render(
  <Router>
    <Provider store={store}>
      <Route component={App} />
    </Provider>
  </Router>,
  document.getElementById("root"),
);
